#include "General.h"

General* General::instance = 0;

General::General(void)
{
	//Valores default
	this->resolucion = 640;
	this->elementBackgroundColor = "000000255";
	this->lineColor = "255000000";
	this->stageBackgroundColor = "000255000";

/*
Por default no hay texturas.
Texture *elementTexture;
Texture *stageTexture;
*/
}

General::~General(void)
{
}

General* General::getInstance()
{
	if(!instance){
		instance = new General();
	}
	return instance;
}

int General::getResolucion()
{
	return this->resolucion;
}

void General::setResolucion( int val )
{
	this->resolucion = val;
}

string General::getElementBackgroundColor()
{
	return this->elementBackgroundColor;
}

void General::setElementBackgroundColor( string val )
{
	this->elementBackgroundColor = val;
}

string General::getLineColor()
{
	return this->lineColor;
}

void General::setLineColor( string val )
{
	this->lineColor = val;
}

string General::getStageBackgroundColor()
{
	return this->stageBackgroundColor;
}

void General::setStageBackgroundColor( string val )
{
	this->stageBackgroundColor = val;
}

Texture * General::getElementTexture()
{
	return this->elementTexture;
}

void General::setElementTexture( Texture * val )
{
	this->elementTexture = val;
}

Texture * General::getStageTexture()
{
	return this->stageTexture;
}

void General::setStageTexture( Texture * val )
{
	this->stageTexture = val;
}